package entity

import (
	"gorm.io/gorm"
	"time"
)

type SysRoleUser struct {
	RoleId    uint32 `gorm:"role_id,primaryKey" json:"roleId"` // 权限ID
	UserId    uint32 `gorm:"user_id" json:"userId"`            // 角色ID
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt `gorm:"index"`
}

//设置表名
func (e *SysRoleUser) TableName() string {
	return "sys_role_users"
}
